04810814b9426f2a99779737726a1b0c3570a845,repose-aggregator/core/core-lib/src/main/java/com/rackspace/papi/filter/PowerFilter.java,SystemModelConfigListener,configurationUpdated,#SystemModel#,106

Before Change


                    SystemModelInterrogator interrogator = new SystemModelInterrogator(ports);
                    localHost = interrogator.getLocalHost(currentSystemModel);
                    serviceDomain = interrogator.getLocalServiceDomain(currentSystemModel);
                    defaultDst = interrogator.getDefaultDestination(currentSystemModel);
                    final List<FilterContext> newFilterChain = new FilterContextInitializer(
                            filterConfig,
                            ServletContextHelper.getInstance(filterConfig.getServletContext()).getApplicationContext()).buildFilterContexts(papiContext.classLoader(), serviceDomain, localHost);

After Change



                    Optional<Node> lh = interrogator.getLocalHost(configurationObject);
                    Optional<ReposeCluster> sd = interrogator.getLocalServiceDomain(configurationObject);
                    Optional<Destination> dd = interrogator.getDefaultDestination(configurationObject);

                    if (lh.isPresent() && sd.isPresent() && dd.isPresent()) {
                        localHost = lh.get();
                        serviceDomain = sd.get();
                        defaultDst = dd.get();